package service.impl;

import java.util.List;

import dao.RoomDao;
import dao.impl.RoomDaoImpl;
import model.RoomModel;
import service.RoomService;

public class RoomServiceImpl implements RoomService {
	RoomDao roomdao=new RoomDaoImpl();
	@Override
	public List<RoomModel> listAll()throws Exception{
		return roomdao.selectAll();
	}
	@Override
	public RoomModel queryRoomByRoomType(String roomType) throws Exception {
		return roomdao.queryRoomByRoomType(roomType);
	}
	@Override
	public void reduceEmptyRoom(String roomType,int roomIndex)throws Exception{
		roomdao.reduceEmptyRoom(roomType,roomIndex);
	}
	@Override
	public List<RoomModel> listType() throws Exception {
		return roomdao.selectType();
	}
	@Override
	public List<RoomModel> allList() throws Exception {
		return roomdao.allList();
	}
	
}
